<template>
  <div id="app">
    <main>
      <router-view></router-view>
    </main>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'

// 示例：在组件挂载时获取当前路由信息
onMounted(() => {
  const route = useRoute()
})
</script>


